package com.xbang.attendance.web.action.purchase.wtime;

import java.util.ArrayList;
import java.util.List;

import org.springframework.beans.factory.annotation.Autowired;

import com.demo2do.lighturl.annotation.Action;
import com.xbang.attendance.entity.wtime.Wtime;
import com.xbang.attendance.service.SystemService;
import com.xbang.core.page.Result;
import com.xbang.core.struts.support.SearchActionSupport;

public class Index extends SearchActionSupport {

	private static final long serialVersionUID = 4604709900883572987L;

	@Autowired
	private SystemService systemService;

	private List<Wtime> wtimes = new ArrayList<Wtime>();

	/*
	 * (non-Javadoc)
	 * 
	 * @see com.opensymphony.xwork2.ActionSupport#execute()
	 */
	@Action("/systemm/wtime/list")
	public String list() throws Exception {

//		String hqlSentence = "FROM Wtime Wtime WHERE 1 = 1";
//
//		Result result = systemService.searchByPage(hqlSentence, searchComponent, page);
//
//		wtimes = result.getItems();
//		page = result.getPage();
		return "index";
	}

	@Override
	public void resetCustomerSearchCriteria() {
		// TODO Auto-generated method stub
	 }

	public List<Wtime> getWtimes() {
		return wtimes;
	}

	public void setWtimes(List<Wtime> wtimes) {
		this.wtimes = wtimes;
	}


	public void setSystemService(SystemService systemService) {
		this.systemService = systemService;
	}
	
	
	}